package com.yonyou.pmclouds.basecom.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * Example:
 *
 * @author zm
 * @ Data
 * @ Table(name = "T_BAS_USER")
 * public class User extends Entity {
 * @ Id
 * private String id;
 * @ OrderColumn
 * private String name;
 * @ OrderColumn(name = "DESC")
 * private String userCode; // default column name : USER_CODE
 * @ Column(name = "PASS")
 * private String password;
 * <p>
 * private String status;
 * @ Column(name = "S_COLUMN") // default column name : SOME_COLUMN
 * private String getSomeColumn() {
 * return null;
 * }
 * @ Transient
 * private String getSomeNoneColumn() {
 * return null;
 * }
 * <p>
 * }
 */
@Data
public abstract class Entity implements Serializable, Cloneable {

    /**
     *
     */
    private static final long serialVersionUID = 5644299666546593248L;

    public abstract Object pkFiledValue();

    public abstract void initPkFiledValue(Object id);

}